package com.arcsoft.commonbase.ext

import com.blankj.utilcode.util.ToastUtils

/**
 * 双击退出
 */
private var mExitTime: Long = 0
fun doubleClickExit(): Boolean {
    if (System.currentTimeMillis() - mExitTime > 2000) {
        customShowLong("再按一次退出")
        mExitTime = System.currentTimeMillis()
        return false
    }
    return true
}